package wfb.wfbdbimpl;

import java.io.Serializable;

import javax.persistence.*;

import wfb.definitions.OrganizationData;

@Entity
@Table( name = "dbprak13.LaenderInorga" )
public class LandInOrga extends OrganizationData implements Serializable {

	private String land;
	private String organisation;
	private String orgalang;
	
	public LandInOrga(){}
	
	public LandInOrga(String land, String organisation){
		this.land=land;
		this.organisation=organisation;
	}

	@Id
	public String getLand() {
		return land;
	}

	public void setLand(String land) {
		this.land = land;
	}

	@Id
	@Column(name="organization")
	public String getOrganisation() {
		return organisation;
	}

	public void setOrganisation(String organisation) {
		this.organisation = organisation;
		super.setShortName(organisation);
	}
	
	@Column(name="longname")
	public String getOrgaLang(){
		return orgalang;
	}
	
	public void setOrgaLang(String orgalang){
		this.orgalang=orgalang;
		super.setLongName(orgalang);
	}
}
